+2003-10-07 Dom Lachowicz <cinamod@hotmail.com>\r
+\r
+ * Added new mingw based build system, tidied up other missing bits\r
+ \r
2003-10-07 Raymond Penners <raymond@dotsphinx.com>\r
\r
* src/wimp_style.c: Tabs not located on top of the notebook are\r
--- /dev/null
+SUBDIRS=Theme
+
+EXTRA_DIST=Makefile.msc
+
+INCLUDES=$(WIMP_CFLAGS)
+
+enginedir=$(libdir)/gtk-2.0/$(GTK_VERSION)/engines
+
+engine_LTLIBRARIES = libwimp.la
+
+libwimp_la_SOURCES = \
+ wimp_rc_style.c \
+ wimp_rc_style.h \
+ wimp_style.c \
+ wimp_style.h \
+ wimp_theme_main.c \
+ xp_theme.c \
+ xp_theme_defs.h \
+ xp_theme.h
+
+libwimp_la_LDFLAGS = -avoid-version -module -no-undefined -export-dynamic
+libwimp_la_LIBADD= $(WIMP_LIBS)
+
--- /dev/null
+SUBDIRS=gtk-2.0
--- /dev/null
+themedir = $(datadir)/themes/gtk-2.0
+theme_DATA=gtkrc
+
+EXTRA_DIST=$(theme_DATA)
#include "xp_theme.h"
#include <windows.h>
-#include <uxtheme.h>
-#include <tmschema.h>
#include <math.h>
#include <string.h>
#include <gdk/gdkwin32.h>
#include <stdio.h>
-/* MS defines this when it includes its schema definitions */
-#ifndef TMSCHEMA_H
+#ifdef DONT_HAVE_UXTHEME_H
#include "xp_theme_defs.h"
+#else
+#include <uxtheme.h>
+#include <tmschema.h>
#endif
static const LPCWSTR class_descriptors[] =
*/
/*
- * These are the real values of these UXTHEME constants, provided so that we can
+ * These are the real values of these UXTHEME constants, provided so that we can
* compile/link on Win32 platforms that aren't WinXP, and also build against
* MinGW 1.0/1.1, which also doesn't have these things defined in its header files
*/
typedef HANDLE HTHEME;
+#define ETDT_ENABLE 0x00000002
+#define ETDT_USETABTEXTURE 0x00000004
+#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE)
+
#define BP_PUSHBUTTON 1
#define BP_CHECKBOX 3
#define ABS_UPDISABLED 4
#define ABS_DOWNNORMAL 5
#define ABS_DOWNHOT 6
+#define ABS_DOWNPRESSED 7
#define ABS_DOWNDISABLED 8
#define ABS_LEFTNORMAL 9
#define ABS_LEFTHOT 10